<template>
  <el-breadcrumb separator="/">
    <el-breadcrumb-item :to="{ path: '/main' }">首页</el-breadcrumb-item>
    <el-breadcrumb-item>{{ one }}</el-breadcrumb-item>
    <el-breadcrumb-item>{{ two }}</el-breadcrumb-item>
  </el-breadcrumb>
</template>

<script>
export default {
  data() {
    return {
      one: "",
      two: "",
    };
  },
  watch: {
    $route: {
      handler(route) {
        this.one = route.meta.one;
        this.two = route.meta.two;
      },
      immediate: true,
      deep: true,
    },
  },
};
</script>

<style lang="less" scoped>
</style>